﻿using RedisDemo.Entitys;
using RedisDemo.Service.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedisDemo.Base.EntityFrameworkCore.Repository
{
    public class UserRepository : RepositoryBase<Account>, IUserRepository
    {
        public UserRepository(RedisDbContext repositoryContext) : base(repositoryContext) { }

        public Account GetUserById(int id)
        {
            return FindByCondition(user => user.UserId == id)
               .FirstOrDefault();
        }

        public Account InsertUserById(int id)
        {
            throw new NotImplementedException();
        }
    }
}
